‹#›
Autodesk Inventor 定制开发在线培训 2010
•Activate
•
•Deactivate
•
•
•
•Registration
•
•ClientID
•
•插件的函数重载
m_inventorApplication = addInSiteObject.Application
Marshal.FinalReleaseComObject(m_inventorApplication)
m_inventorApplication = Nothing
GC.WaitForPendingFinalizers()
GC.Collect()
GuidAttribute("f61ba061-ae85-47a2-a344-b96f761401ea")
subKey.SetValue("SupportedSoftwareVersionGreaterThan", "11..")

| So these are the main parts of this framework provided by the template:
| - The Activate function, where you can get the Inventor Application object and set up the user interface and event handling you need
| - the Deactivate function, where you can free all the resources used by your AddIn. Here we explicitly detach from any COM object that we were using globally inside our AddIn class, and then ask the garbage collector to free those objects. IF we did not do it, then .NET may hold onto some of the Inventor objects which would result in Inventor not being able to close properly.
| - ClientID, which is a GUID, i.e. your AddIn’s unique identifier
| - Registration part, where all the additional necessary information is placed in the registry which will make Inventor find your AddIn
| - show all parts in the AddIn